package com.woniuxy.entity;

import java.util.Date;

/**
 * 借书的信息
 */
public class LibraryInformation {
    int id;//主键id
    int onecardid;//一卡通的id主键
    OneCard oneCard;//一卡通信息 --->用户信息
    int libraryid;//图书馆的id 你在哪个图书馆借出去的声明书
    Books book;//用来存放具体的图书信息
    int bookid;//借的书的id
    Date borrowtime;//借出时间
    Date backtime;//还书时间

    public LibraryInformation() {
    }

    public LibraryInformation(int onecardid, int libraryid, int bookid, Date borrowtime, Date backtime) {
        this.onecardid = onecardid;
        this.libraryid = libraryid;
        this.bookid = bookid;
        this.borrowtime = borrowtime;
        this.backtime = backtime;
    }

    public LibraryInformation(int id, int onecardid, int libraryid, int bookid, Date borrowtime, Date backtime) {
        this.id = id;
        this.onecardid = onecardid;
        this.libraryid = libraryid;
        this.bookid = bookid;
        this.borrowtime = borrowtime;
        this.backtime = backtime;
    }

    public LibraryInformation(int id, int onecardid, OneCard oneCard, int libraryid, Books book, int bookid, Date borrowtime, Date backtime) {
        this.id = id;
        this.onecardid = onecardid;
        this.oneCard = oneCard;
        this.libraryid = libraryid;
        this.book = book;
        this.bookid = bookid;
        this.borrowtime = borrowtime;
        this.backtime = backtime;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public int getOnecardid() {
        return onecardid;
    }

    public void setOnecardid(int onecardid) {
        this.onecardid = onecardid;
    }

    public int getLibraryid() {
        return libraryid;
    }

    public void setLibraryid(int libraryid) {
        this.libraryid = libraryid;
    }

    public int getBookid() {
        return bookid;
    }

    public void setBookid(int bookid) {
        this.bookid = bookid;
    }

    public Date getBorrowtime() {
        return borrowtime;
    }

    public void setBorrowtime(Date borrowtime) {
        this.borrowtime = borrowtime;
    }

    public Date getBacktime() {
        return backtime;
    }

    public void setBacktime(Date backtime) {
        this.backtime = backtime;
    }

    @Override
    public String toString() {
        return "LibraryInformation{" +
                "id=" + id +
                ", onecardid=" + onecardid +
                ", oneCard=" + oneCard +
                ", libraryid=" + libraryid +
                ", book=" + book +
                ", bookid=" + bookid +
                ", borrowtime=" + borrowtime +
                ", backtime=" + backtime +
                '}';
    }
}
